package Java多线程技术.第3章.一生产一消费;

public class PThread extends Thread{

    private P p;

    public PThread(P p) {
        this.p = p;
    }


    @Override
    public void run() {
        while (true) {
            p.pushService();
        }
    }
}
